import { request } from '@/utils'

export function list(params) {
  return request({
    url: `notice`,
    method: 'get',
    params,
  })
}

export function info(id) {
  return request({
    url: `notice/${id}`,
    method: 'get',
  })
}

export function edit(data) {
  return request({
    url: `notice`,
    method: 'put',
    data,
  })
}
